CC=gcc
OUT_PUT_OBJECT_FLAG=-c -o

print_single_num.o: print_single_num.s
	@${CC} $< ${OUT_PUT_OBJECT_FLAG} $@

loop_add_1_to_100.o: loop_add_1_to_100.s
	@${CC} $< ${OUT_PUT_OBJECT_FLAG} $@

decision_judge_char.o: decision_judge_char.s
	@${CC} $< ${OUT_PUT_OBJECT_FLAG} $@

sequence_hello: sequence_hello.s
	@${CC} $^ -o $@

decision_judge_char: decision_judge_char.o
	@${CC} $^ -o $@

loop_add_1_to_100: print_single_num.o loop_add_1_to_100.o
	@${CC} $^ -o $@

clean:
	@rm -f loop_add_1_to_100 sequence_hello decision_judge_char *.o
